<?php
define('JUNKTV_BASE', dirname(__FILE__));
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . JUNKTV_BASE . '/lib');

function xoops_tv_resetcookie()
{
    if (isset($_COOKIE['xoops_junktv'])) {
        $cookie_val = $_COOKIE['xoops_junktv'];
        setcookie("xoops_junktv", $cookie_val, time() + 3600 * 24 * 30, substr(XOOPS_URL, strpos(XOOPS_URL, $_SERVER['SERVER_NAME']) + strlen($_SERVER['SERVER_NAME'])) . "/");
    } 
} 

?>